const moudeleA = {
  state: {
    userinfo: [{
      name: '',
      age: 12,
      sex: 1,
      tel: '18911298972'
    }]
  },
  getters: {
    youself: state => {
      return state.userinfo[0];
    }
  },
  mutations: {
    getUserInfo(state, payload) {
      state.name = payload.name;
      state.age = payload.age;
      state.sex = payload.sex;
      state.tel = payload.tel;
    }
  },
  actions: {
    getUserInfo({ commit }, payload) {
      commit('getUserInfo', payload);
    }
  }
};
export default moudeleA;
